import http from "@/utils/http";

// Login
export function Login(params: { phone: string; password: string }) {
  return http.post(`/work/user/login`, params).then<{
    token: {
      accessToken: string;
      refreshToken: string;
    };
  }>((res) => res?.data);
}

export function UserinfoEntrysone() {
  return http.post(`/work/userinfo/entrysone`).then<{
    uname: string;
  }>((res) => res.data);
}
